﻿using NExt.Core.Model.Base;

namespace NExt
{
    public class BoxComponent : BoxComponent<BoxComponentEvents>
    {
    }

    public abstract class BoxComponent<TEvents>: Component<TEvents>
        where TEvents : BoxComponentEvents, new()
    {
        public bool? autoHeight { get; set; }
        public bool? autoWidth { get; set; }
        public int? height { get; set; }
        public int? pageX { get; set; }
        public int? pageY { get; set; }
        public int? width { get; set; }
        public int? x { get; set; }
        public int? y { get; set; }
    }

    public class BoxComponentEvents : ComponentEvents
    {
        public IScript move { get; set; }
        public IScript resize { get; set; }
    }
}
